package com.naiterui.ehp.bs.b2c.address.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.b2c.address.entity.City;

/**
 * 地址簿
 *
 * @author guoyongxiang
 * @date 2019-01-12 13:24
 * @since 1.0.0
 */
@Repository
public interface CityRepository extends BaseJpaRepository<City, Long> {

    /**
     * 根据可用状态查询城市列表
     *
     * @param available
     *
     * @return
     */
    List<City> findAllByAvailable(Integer available);

}
